/**
 *
 * @author Dennisse
 */
public class SplayTreeSet implements WordSet{
    private SplayTree base;
        
        public SplayTreeSet()
        {
                base = new SplayTree();
        }
        
        public Word get(Word word)
        {
                Word temp = (Word)base.find(word);
                
                return temp;
        }
        
        public void add(Word wordObject)
        {
                base.insert(wordObject);
        }
    
}